<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class DRView extends CI_Controller {	function __construct() {		parent::__construct();
		$this->load->helper('url');
		//$this->load->database();
	}

	function Index() {
		if (!$this->tank_auth->is_logged_in()) {			redirect('/auth/login');
		} else {			$Data['PageTitle'] = 'Выборка по записям доходов/расходов';
			$Data['MainContent'] = 'DRRowView';			if ($Query = $this->db->get('DR')->Result()) {				$Data['Records'] = $Query;
			}
            $this->load->view('TemplateView',$Data);
		}
	}
}